-- 2 txd 发 3 rxd 收
s = softuart.setup(9600,2,3)
s:on("data","$",function (data) 
    print(data, data:sub(data, 1, #data -1))
    s:write("ok")
end) 
